﻿using System.Collections;
using static System.Console;

Queue<int> q = new Queue<int>();
q.Enqueue(1);
q.Enqueue(90);
q.Enqueue(99);
q.Enqueue(34);
q.Enqueue(344);

WriteLine(q.Dequeue());

Stack<int> s = new Stack<int>();
s.Push(1);
s.Push(2);
s.Push(45);
s.Push(23);
WriteLine(s.Pop());

int[] arr = s.ToArray();
foreach (var item in arr)
{
    WriteLine(item);
}


ReadLine();